<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/favicon.ico">
<title>System</title>
<link type="text/css" href="/Public/jcms/css/layout.css" rel="stylesheet" />	
<script type="text/javascript" src="/Public/jcms/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/Public/jcms/js/easyTooltip.js"></script>
<script type="text/javascript" src="/Public/jcms/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="/Public/jcms/js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="/Public/jcms/js/hoverIntent.js"></script>
<script type="text/javascript" src="/Public/jcms/js/superfish.js"></script>
<script type="text/javascript" src="/Public/jcms/js/custom.js"></script>
<script type="text/javascript" src="/Public/jcms/js/jquery.validate.js"></script>
<script type="text/javascript" src="/Public/jcms/js/common.js"></script>
<script type="text/javascript">
var APP = "/index.php?s=";
</script>
<style>
body{font-size:12px;}
body a{outline:none;blr:expression(this.onFocus=this.blur());}
*body{font:"Courier New", Courier, monospace;}
html{overflow-x: hidden; overflow-y: auto;}
.red{color:#F00;}
input.error{background:none;border:red 1px dotted;}
label.error{background:none;color:#F00;border:none;}
select.error{background:none;border:red 1px dotted;}
input, textarea, select{border:1px solid #06F; color:#06F;}
fieldset{border:1px solid #000;}
.noborder{border:#FFF;}
.blueunder{ color:#000000; text-decoration:none;}

.fl{float:left}
.fr{float:right}
.w50{width:50px;}
.w100{width:100px;}
.w160{width:160px;}
.w200{width:200px;}
.w300{width:300px;}
.w400{width:400px;}
.w500{width:500px;}

.h80{height:80px;}
.h100{height:100px;}

.nm{margin:0;}
.mtb2{margin:2px 0;}
.mt{margin-top:5px;}
.mb{margin-bottom:5px;}

input, textarea, select{
	border: 1px solid #000000;
	color: #000000;	
}
</style>
<!--[if lte IE 7]>
<link type="text/css" href="/Public/jcms/css/ie6.css" rel="stylesheet" />
<![endif]-->
</head>    
<body style="background:none;">
<script type="text/javascript"> 
$(function(){
    $('#addPart').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success:function(label){
            label.addClass('right').text('OK!');
        },
        rules : {
            adname : {
                required : true,
				rangelength : [3,10],
            },
            adpw : {
                required : true,
				rangelength : [5,10],
            },		
            adpw1 : {
                required : true,
				rangelength : [5,10],
				equalTo: "#adpw"
            },										
        },
        messages : {
            adname : {
                required : '帐号不能为空',
				rangelength : '长度介于3-10之间',
            },
			adpw : {
                required : '密码不能为空',
				rangelength : '长度介于5-10之间',
            },
			adpw1 : {
                required : '密码不能为空',
				rangelength : '长度介于5-10之间',
				equalTo: "两次输入密码不一致"
            },			
        }	
    });
});
</script>
<style>
body{font-size:12px;}
.sminput{width:30px; text-align:center;}
td a{ margin:0 5px;}
tr{ height:40px;}
.red{ color:#F00}
.fl{float:left;}
</style>
<div id="content">
	<div id="main">
    	<div class="pad20">
        	<?php if($myself != 1): ?><div>
                    <p style="text-align:right;"><input onclick="selflo('<?php echo ($lasturl); ?>')" class="button" type="submit" value="返回上一级" /></p>
                </div><?php endif; ?>
			<div id="tabs">            
                <ul>
               		 <li><a href="#tabs-1"><?php echo ($tabs); ?></a></li>
                </ul>               
                
                <div id="tabs-1">
                <form id="addPart" method="post" action="/index.php?s=/Do/<?php echo ($act); ?>/">
                    <input type="hidden" name="model" value="<?php echo ($model); ?>" />
                    <input type="hidden" name="act" value="<?php echo ($act); ?>" />
                    <input type="hidden" name="callback" value="<?php echo ($callback); ?>" />       
                    <input type="hidden" name="cid" value="<?php echo ($res['cid']); ?>" />                
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>   
                            <td>自定义排序：</td>
                            <td style="padding:8px 0;">
                                <input id="sorts" name="sorts" type="text" class="input" value="<?php echo ($res['sorts']); ?>" placeholder="自定义排序"/>
                            </td>
                        </tr>
                        <tr>   
                            <td>菜单名称：</td>
                            <td style="padding:8px 0;">
                                <input id="cname" name="cname" type="text" class="input" value="<?php echo ($res['cname']); ?>" placeholder="菜单名称"/>
                            </td>
                        </tr>
                        <tr>   
                            <td>所属分类：</td>
                            <td style="padding:8px 0;">
								<select id="pid" name="pid" class="input">
                                    <option value="0">顶级分类</option>
                                    <?php echo ($cate); ?>
                               	</select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><input class="button" type="submit" value="保存" /></td>
                        </tr>
                     </table>
                 </form>
                </div>                                 
			</div>  
        </div>
	</div>
</div>            
                
<div id="SysDel" title="提示!" style="display:none;">
    <p>确定要删除?</p>
</div> 
<div id="SysMove" title="提示!" style="display:none;">
    <p>确定要转移?</p>
</div>
<div id="SysDone" title="提示!" style="display:none;">
    <p>确定要操作?</p>
</div>
<script type="text/javascript" src="/Public/jcms/js/confirm.js"></script>
</body>
</html>